
VTI Instruments (an Ametek Instruments Company).

DISCLAIMER: These tools are provided as-is for developer use only. Do not use them incorrectly, as they can render a 10xxA inoperative. VXI Technology is not responsible for damage resulting from the use of these tools. No distribution of this source code, binaries, auto generated code, or basically anything that comes out of this .tar.gz file or the compiler used on it can be distributed by anybody for any reason without express written permission of VTI Instruments.

EX10xxA Linux Client Tools Release Notes
----------------------------------------
v 1.7.0                    01, Apr 2016
----------------------------------------
- Support for EX1044
- OSX Support Added

v1.0.0                     07, Oct 2016
----------------------------------------
 - Initial version of the Linux Client Tools for the EX1048 product variants (EX10xxA/RX10xx/EX1000A-51C).

Notes on using the Linux EX1048 command-line tools.

Basics
------

These command-line tools provide a simple interface to EX1048 instruments.  They are intended primarily for testing and development.

All of the tools are built into a single executable, ex1048client, whose execution behavior varies depending on the name used to invoke it.  The commands are symlinks to this executable.

Help
----
Each command-line tool provides a minimal amount of help information if it is invoked with a --help parameter:

>readfifo --help
readfifo: invalid option -- -
 
Usage: readfifo [options] [filename]
         -t            use TCP/IP (default)
         -u            use UDP 
         -h hostname   specify host (default is localhost)
         -v            verbose (generates more output)
         -c count      count (default is 1)
                       (set to -1 for continuous gather)
         -p pages      number of data pages per request (0 queries FIFO count;
                       -1 requests max; pages>1 requests pages)
                       (default is 0)
         -s            output data in CSV format
         -d            discard data (do not display on stdout)
         -x            display throughput data (KB/sec)
         filename      output file name (default stdou)
 

If in doubt, look at the source code.


Environment Variables
---------------------

All of the command-line tools support a Unix environment variable, EX1048OPTS, that can be used to store common command-line arguments.  

The common command-line arguments, supported by all of the tools are

-t		use RPC over TCP/IP (default)
-h <host>	specify the host ip to communicate with

The environment variable can be set in a shell startup file, such as .bashrc, using vi or your favorite editor:

export EX1048OPTS="-t -h 10.1.2.103"

Use the environment variable CONFIG_EXPRODUCT_TYPE to build for different EX products.

For EX1048A product variants:
export CONFIG_EXPRODUCT_TYPE="EX1048A"

For RX1000 product variants:
export CONFIG_EXPRODUCT_TYPE="RX1000"

For EX1000A-51C product:
export CONFIG_EXPRODUCT_TYPE="EX1000A51C"

Before building for other products than configured, use the make clean method to clean up the build.


Command Summary
---------------
abort			abort the current acquisition
configfifo		configure the FIFO's storage format 
				(e.g., CJC data, raw counts, timestamps,etc.)
exreset			reset the instrument to the power-on defaults
findinstr		perform a UDP RPC broadcast to locate all EX1048
				instruments on the subnet
getconversions	get channel EU conversions
getfreqs		get channel frequency filter settings
getscanlist		get scanlist channels
readfifo		read data from the FIFO
resetfifo		reset the FIFO
setconversions	set channel EU conversions
setfreqs		set channel frequeny filter settings
setscanlist		set scanlist channels
triggetcount	get the trigger count
triggetsrc		get the trigger source
triggettimer	get the trigger timer 
triginit		initiate trigger and acquisition
trigsetcount	set the trigger count
trigsetsrc		set the trigger source
trigsettimer	set the trigger timer
selftest    	run the self-test to verify the CJC functionality
				(as of now only applicable for RX10xx products)

Examples and Usage
------------------

To perform a simple acquisition, the following commands might be used (assumes EX1048OPTS environment variable has been set)

# reset the instrument
exreset
# configure the scanlist for channels 0,1,4,6,7,8
setscanlist 0 1 4-8
# set channels up for T-Type Thermocouple conversions
setconversions 0 1 4-8 T
# set trigger source to be the trigger timer
trigsetsrc -T
# set trigger count to 100
trigsetcount 100
# set the trigger timer period to 500ms
trigsettimer 0.5
# initiate the trigger
triginit
# read data continuously in CSV format
# Use CTRL-C to stop readfifo
readfifo -s -p -1 -c -1 ~/temp/data1.csv
# run the self-test (applicable only for RX10xx)
# this command initiates the self-test for RX10xx
# and waits for the completion, by providing the
# percentage completion and then displays the results.
selftest

NOTES
-----
Currently, the EX1048 prototypes only function with DHCP IP assignment. The findinstr command can be used to locate instruments on the subnet. If the DHCP server is configurable, a static IP address can be assigned to the instrument's MAC ID.

Also, the EX1048 does not currently have any notion of absolute time, the Network Time Protocol support has not been added.  Therefore, all times will be based on when the box is turned on.
